package com.coder520.mamabike.b.internet.net;


import com.coder520.mamabike.b.entity.BikeLockTo;
import com.coder520.mamabike.b.entity.ResponseEntityVo;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

/**
 * Created by zhongyanli on 2017/10/13.
 */

public interface BikeInterface {
    @POST("bike/b/lockBike")
    Call<ResponseEntityVo<Object>> lockBike(@Body BikeLockTo bikeLockTo);
    @GET("bike/b/queryBikeStatus/{bikeNumber}")
    Call<ResponseEntityVo<Integer>> queryBikeState(@Path("bikeNumber") Long bikeNumber);
}
